﻿/// <reference path="TsLinq.d.ts" />
/// <reference path="Timespan.ts" />
/// <reference path="Dictionary.ts" />

//
//  Implementation for a stop watch.
//
class StopWatch {

    public static start(): StopWatch {
        var stopW = new StopWatch();
        return stopW;
    }

    private msStart: number = Date.now();

    constuctor() {
    }

    stop(): Timespan {
        var span = new Timespan(Date.now() - this.msStart);
        return span;
    }
}